// 
import {request, uploadFile} from './bks.request'
// 预测院校列表
export const forecastSchool = (params) => {
  return request({
    url: '/applet/volunteer/forecast/school',
    params
  })
}
// 预测专业列表
export const forecastMajor = (params) => {
  return request({
    url: '/applet/volunteer/forecast/major',
    params
  })
}
// 志愿列表
export const volunteerList = (params) => {
  return request({
    url: '/applet/volunteer/major',
    params
  })
}
// 添加志愿
export const volunteerAdd = (data) => {
  return request({
    url: '/applet/volunteer/major',
    method: 'post',
    data
  })
}
// 删除志愿
export const volunteerDel = (params) => {
  return request({
    url: '/applet/volunteer/major',
    method: 'delete',
    header: { 'Content-Type': 'application/x-www-form-urlencoded' },
    params
  })
}

// 志愿首页 - 成绩分析
export const volunteerAnalysis = (data) => {
  return request({
    url: '/applet/volunteer/score/analysis',
    data
  })
}


// 志愿首页 - 分数线预测
export const volunteerForecast = (data) => {
  return request({
    url: '/applet/volunteer/score/forecast',
    data
  })
}

// 志愿首页 - 推荐院校和模拟志愿
export const recommendSchool = (params) => {
  return request({
    url: '/applet/volunteer/recommend/school',
    method: 'get',
    params
  })
}

// 录入成绩
export const scoreEntering = (data) => {
  return request({
    url: '/applet/bksScoreAnalysis/count',
    method: 'get',
    data,
    loading: '成绩分析中...'
  })
}
// export const scoreEntering = (data) => {
//   return request({
//     url: '/applet/bksScoreAnalysis/count',
//     method: 'post',
//     data
//   })
// }

// 赋分成绩查询
export const scoreGrades = (data) => {
  return request({
    url: '/applet/bksScoreAnalysis/select',
    method: 'post',
    data
  })
}

// 我的成绩
export const myScoreList = (params) => {
  return request({
    url: '/applet/bksScoreAnalysis/list',
    method: 'get',
    params
  })
}
// 删除成绩记录
export const myScoreRecordDelete = (params) => {
  return request({
    url: '/applet/score/del/score/logs',
    method: 'get',
    params
  })
}

// 期望成绩更新
export const myScoreUpdate = (data) => {
  return request({
    url: '/applet/bksScoreAnalysis/update',
    method: 'post',
    data
  })
}


// 志愿分析
export const bksScoreAnalysisName = (params) => {
  return request({
    url: '/applet/bksScoreAnalysis/name',
    method: 'get',
    params
  })
}

// 志愿分析
export const scoreAnalysisPiecewise = (params) => {
  return request({
    url: '/applet/bksScoreAnalysis/applet-anon/get',
    method: 'get',
    params
  })
}
// 我的期望成绩是否可以修改或者增加 
export const scoreAnalysisIsUpdate = (params) => {
  return request({
    url: '/applet/bksScoreAnalysis/isUpdate',
    method: 'get',
    params
  })
}
// 是否可以分析成绩 
export const isAnalysis = (params) => {
  return request({
    url: '/applet/bksScoreAnalysis/analysis',
    method: 'get',
    params
  })
}

// 录入分数预测院校  
export const forecastSchoolScore = (params) => {
  return request({
    url: '/applet/volunteer/forecast/school/score',
    method: 'get',
    params
  })
}

// 录入分数预测院校专业
export const forecastMajorScore = (params) => {
  return request({
    url: '/applet/volunteer/forecast/major/score',
    method: 'get',
    params
  })
}
